directive
( service in module ng
)
Register a new directives with the compiler.
$compileProvider#directive(name, directiveFactory);
name – {string} –
Name of the directive in camel-case. (ie ngBind
which will match as
ng-bind
).
directiveFactory – {function} –
An injectable directive factory function. See guide/directive for more info.
{ng.$compileProvider}
– Self for chaining.